<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<style type="text/css">
			.list{
				/* 开启flex布局 */
				display: flex;
				/* 设置弹性盒子的子元素超出父容器时自动换行 */
				flex-wrap: wrap;
			}
			.list .item{
				width: 200px;
				height: 200px;
				border: 2px solid deeppink;
				margin: 10px;
				padding: 5px;
				background-color: orange;
			}
			
			.user-card{
				display: flex;
				flex-wrap: wrap;
				/* x轴两端对齐：justify-content: space-between;
				 justify-content: space-around;
				 */
				justify-content: space-between;
				/* y轴居中 */
				align-items: center;
			}
		</style>
	</head>
	<body>
		<fieldset id="">
			<legend>flex容器属性</legend>
			
			<div class="list">
				<div class="item">imte1</div>
				<div class="item">imte2</div>
				<div class="item">imte3</div>
				<div class="item">imte4</div>
				<div class="item">imte5</div>
				<div class="item">imte6</div>
				<div class="item">imte7</div>
				<div class="item">imte8</div>
				<div class="item">imte9</div>
				<div class="item">imte10</div>
				<div class="item">imte11</div>
				<div class="item">imte12</div>
			</div>
		</fieldset>
		
		<fieldset id="">
			<legend>横轴、纵轴对齐方式</legend>
				
			<div class="user-card">
				<div class="avatar">
					<img src="img/face.png" >
				</div>
				<div class="name">黄小米</div>
				<div class="position">技术部|前端开发工程师</div>
			</div>
			
		</fieldset>
	</body>
</html>
